Skip to content

fix(db): transaction context manager + fixed parameterized updates (CORR-10) - #8

Merged
KARLalpha4768 merged 1 commit into
mainfrom
fix/db
Nov 17, 2026
Merged

KARLalpha4768 merged 1 commit into
mainfrom
fix/db

Conversation

@KARLalpha4768

Copy link
Copy Markdown
Owner

Changes

  • CORR-10: get_db() is now a commit/rollback/close context manager used by all helpers; the dynamically built UPDATE clause is replaced with fixed parameterized statements.

Tests

  • tests/test_db_lifecycle.py: rollback and close on error, task state update persists with completed_at.

Not verified

  • Large diff in db.py (mostly re-indentation into with-blocks); worth a careful read of callers outside the test suite.

Verification

Drafted by Codex from the medium/low review findings; split and re-verified per branch.

@KARLalpha4768
KARLalpha4768 merged commit 84e6c25 into main Nov 17, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant